home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / PROGNAME.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  48 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   PROGNAME.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NB02.INC"
  22. COLOR 7,0
  23. CLS
  24.  
  25. ? "┌───────────────────────────────────────────────────────────────────────
  26. ? "│ fProgName$ ()   returns the full Drive:\Path\Progname.ext
  27. ? "│ fProgPath$ ()   returns only the Drive:\Path\
  28. ? "├─────────────────────────────────────────────────────────────────────────
  29. ? "│ In this day and age you can't really make it mandatory that your users
  30. ? "│ change drive and directory to insure that your program doesn't have to
  31. ? "│ look for it's data. If you need to know what the program name is or where
  32. ? "│ it's being run from DOS will provide you with the info.
  33. ? "│ I usually declare a set of PUBLIC variables then read in the path at the
  34. ? "│ top of the program and make-up whatever else I need to know from there.
  35. ? "└─────────────────────────────────────────────────────────────────────────
  36. ?
  37.  
  38. PUBLIC pProgPath$
  39. PUBLIC pDataPath$
  40.  
  41. pProgPath$ = fProgPath$
  42. pDataPath$ = pProgPath$ + "DATA\"
  43.  
  44. PRINT pProgPath$
  45. PRINT pDataPath$
  46. PRINT
  47. PRINT "YOU ARE NOW RUNNING: "; fProgName$
  48.